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