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"); }
public void TestCorrectValue() { TestExample test = new TestExample(); Assert.Equals(test.getValue(), 35); Assert.IsTrue(test.create(35), "test create failed"); }