public void SubtractionTest()
        {
            var obj = new ImportantClass();

            Assert.AreEqual(obj.GetNum(), 0);
            obj.SubFromNum(-13);
            Assert.AreEqual(obj.GetNum(), 13);
        }
        public void AdditionTest()
        {
            var obj = new ImportantClass();

            Assert.AreEqual(obj.GetNum(), 0);
            obj.AddToNum(13);
            Assert.AreEqual(obj.GetNum(), 13);
        }
        public void AddSubTest()
        {
            var obj = new ImportantClass();

            Assert.AreEqual(obj.GetNum(), 0);
            obj.SubFromNum(13);
            obj.AddToNum(13);
            Assert.AreEqual(obj.GetNum(), 0);
        }
Exemplo n.º 4
0
 public TestController(IBus bus, ImportantClass importantClass)
 {
     _bus            = bus;
     _importantClass = importantClass;
 }
Exemplo n.º 5
0
 public TestController(ImportantClass importantClass)
 {
     _importantClass = importantClass;
 }