Exemple #1
0
        public void IsTriangularNum_Test()
        {
            GroupTwoFunctions g2 = new GroupTwoFunctions();
            int num1             = 3;
            int num2             = 0;
            int num3             = 1431;
            int num4             = 870;

            Assert.True(g2.IsTriangularNum(num1));
            Assert.True(g2.IsTriangularNum(num2));
            Assert.True(g2.IsTriangularNum(num3));
            Assert.False(g2.IsTriangularNum(num4));
        }
Exemple #2
0
 public void IsTriangularNum_Test()
 {
     Assert.True(FunctiontoTest.IsTriangularNum(1));
     Assert.False(FunctiontoTest.IsTriangularNum(2));
     Assert.True(FunctiontoTest.IsTriangularNum(3));
     Assert.False(FunctiontoTest.IsTriangularNum(4));
     Assert.False(FunctiontoTest.IsTriangularNum(5));
     Assert.True(FunctiontoTest.IsTriangularNum(6));
     Assert.False(FunctiontoTest.IsTriangularNum(7));
     Assert.False(FunctiontoTest.IsTriangularNum(8));
     Assert.False(FunctiontoTest.IsTriangularNum(9));
     Assert.True(FunctiontoTest.IsTriangularNum(10));
 }
        public void IsTriangularNum_test(bool expected, int input)
        {
            GroupTwoFunctions G1 = new GroupTwoFunctions();
            var result           = G1.IsTriangularNum();

            Assert.Equal(expected, result);
        }
        public void IsTriangularNum(Boolean expected, int num)
        {
            var ml     = new GroupTwoFunctions();
            var result = ml.IsTriangularNum(num);

            Assert.Equal(result, expected);
        }
Exemple #5
0
 public void IsTriangularNum_Test(bool expected, int num) {
     Assert.Equals(expected, x.IsTriangularNum(num));
 }
Exemple #6
0
 public void IsTriangularNum_Test(bool answere, int num)
 {
     Assert.Equals(answere, z.IsTriangularNum(num));
 }
Exemple #7
0
        public void IsTriangularNum_Test(bool expected, int input)
        {
            GroupTwoFunctions GTF = new GroupTwoFunctions();

            Assert.Equal(expected, GTF.IsTriangularNum(input));
        }