Exemplo n.º 1
0
        public void Runtime_AddInHasMatchingAddInRuntime_ReturnsAddInRuntime()
        {
            FakeAddIn        fakeAddIn       = CreateFakeAddIn("ICSharpCode.PackageManagement");
            FakeAddInRuntime expectedRuntime = fakeAddIn.AddFakeAddInRuntime("PackageManagement.dll");

            CreateRuntime(fakeAddIn);

            IAddInRuntime addInRuntime = runtime.Runtime;

            Assert.AreEqual(expectedRuntime, addInRuntime);
        }
Exemplo n.º 2
0
        public void Runtime_AddInHasThreeRuntimesWithSecondOneMatchingAddInRuntime_ReturnsSecondAddInRuntime()
        {
            FakeAddIn fakeAddIn = CreateFakeAddIn("ICSharpCode.PackageManagement");

            fakeAddIn.AddFakeAddInRuntime("Test.dll");
            FakeAddInRuntime expectedRuntime = fakeAddIn.AddFakeAddInRuntime("PackageManagement.dll");

            fakeAddIn.AddFakeAddInRuntime("AnotherTest.dll");
            CreateRuntime(fakeAddIn);

            IAddInRuntime addInRuntime = runtime.Runtime;

            Assert.AreEqual(expectedRuntime, addInRuntime);
        }