Exemple #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 });
        }
Exemple #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);
        }
Exemple #3
0
 public void TestCleanup()
 {
     driver   = null;
     driverSC = null;
     fltLib   = null;
 }
Exemple #4
0
 public void TestCleanup()
 {
     stub = null;
 }
Exemple #5
0
 public void TestInitialize()
 {
     stub = new FltLibStub();
 }