예제 #1
0
 public void test_cube_zero()
 {
     Assert.Catch(Type.GetType("labs.FigureZeroSizeException"), () => { Cube _cube = new Cube(0); });
 }
예제 #2
0
        public void test_cube_min()
        {
            string temp = "-3,402823E+39";

            Assert.Catch(Type.GetType("System.OverflowException"), () => { Cube _cube = new Cube(float.Parse(temp)); });
        }