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