示例#1
0
 public void TestShapeArea()
 {
     Shape simple = new Shape();
     simple.width = 2;
     simple.height = 2;
     Assert.IsTrue(simple.calculateArea() == 4);
 }
示例#2
0
 public void TestShapeVolume()
 {
     Shape simple = new Shape();
     simple.width = 2;
     simple.height = 3;
     simple.depth = 5;
     Assert.IsTrue(simple.calculateVolume() == 30);
 }
示例#3
0
 public void TestMethod1()
 {
     Shape testShape = new Shape();
     Assert.IsInstanceOfType(testShape, typeof(Shape));
 }