Ejemplo n.º 1
0
        public void CreateNew_MinusSizeSide_Null(string name, double side1, double side2, double side3)
        {
            TrianglCreator trianglCreator = new TrianglCreator();
            Triangle       triangle       = trianglCreator.CreateNew(name, side1, side2, side3);

            Assert.IsNull(triangle);
        }
Ejemplo n.º 2
0
        public void CreateNew_CorectData_OK(string name, double side1, double side2, double side3)
        {
            TrianglCreator trianglCreator = new TrianglCreator();
            Triangle       triangle       = trianglCreator.CreateNew(name, side1, side2, side3);

            Assert.IsNotNull(triangle);
        }
Ejemplo n.º 3
0
        public void CreateNew_EmptyString_Null()
        {
            string name  = " ";
            double side1 = 5;
            double side2 = 5;
            double side3 = 5;

            TrianglCreator trianglCreator = new TrianglCreator();
            Triangle       triangle       = trianglCreator.CreateNew(name, side1, side2, side3);

            Assert.IsNull(triangle);
        }