示例#1
0
 public void TestCreate()
 {
     //create class to be tested
     TestExample test = new TestExample();
     //use the methods of Assert to test the methods from the class
     Assert.IsTrue(test.create(2), "test create failed");
 }
示例#2
0
 public void TestCorrectValue()
 {
     TestExample test = new TestExample();
     Assert.Equals(test.getValue(), 35);
     Assert.IsTrue(test.create(35), "test create failed");
 }