Example #1
0
 public void Test1()
 {
     Console.WriteLine("Test1 starting...");
     ThreeClass.Main(new string[] { "a" });
     threeClass.DoIt();
     Console.WriteLine("Test1 end");
     Assert.Pass();
 }
Example #2
0
        public void SeeWhatReturnsOnZero()
        { // Makes sure it does not return true when divisable by three and five.
            var threeClass = new ThreeClass();

            var input = -1;

            var actualOutput = threeClass.IfDivisableByThree(input);

            Assert.AreEqual(false, actualOutput);
        }
Example #3
0
        public void SeeIfReturnsFalseOnOtherNumbers()
        { // Makes sure it does not return true when divisable by three and five.
            var threeClass = new ThreeClass();

            var input = 5;

            var actualOutput = threeClass.IfDivisableByThree(input);

            Assert.AreEqual(false, actualOutput);
        }
Example #4
0
        public void SeeIfReturnsTrueOnCorrectNumbers()
        { // Checks to see if it returns true if number is divisable by three.
            var threeClass = new ThreeClass();

            var input = 3;

            var actualOutput = threeClass.IfDivisableByThree(input);

            Assert.AreEqual(true, actualOutput);
        }
Example #5
0
 public void Setup()
 {
     Console.WriteLine("ThreeClassTest Setup");
     threeClass = new ThreeClass();
 }