예제 #1
0
        public void TestInitialize()
        {
            driverSC = new AdvSCStub();
            fltLib   = new FltLibStub();
            var ci = typeof(Driver).GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic,
                                                   null,
                                                   new[] { typeof(AdvSC), typeof(FltLib) },
                                                   null);

            Assert.IsNotNull(ci);
            driver = (Driver)ci.Invoke(new object[] { driverSC, fltLib });
        }
예제 #2
0
        public void TestInitialize()
        {
            ruleset          = new Ruleset();
            serviceInterface = new ServiceInterface(ruleset);

            // Creating instance of driver class.
            driverSC = new AdvSCStub();
            fltLib   = new FltLibStub();
            var ci = typeof(Driver).GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic,
                                                   null,
                                                   new[] { typeof(AdvSC), typeof(FltLib) },
                                                   null);

            Assert.IsNotNull(ci);
            driver = (Driver)ci.Invoke(new object[] { driverSC, fltLib });

            // Creating the core instance
            core = new Core(driver);
        }
예제 #3
0
 public void TestCleanup()
 {
     driver   = null;
     driverSC = null;
     fltLib   = null;
 }
예제 #4
0
 public void TestCleanup()
 {
     stub = null;
 }
예제 #5
0
 public void TestInitialize()
 {
     stub = new FltLibStub();
 }