예제 #1
0
        public void IsRegistered_False()
        {
            DIConfiguration sut = new DIConfiguration();

            sut.Register                   = new Register[1];
            sut.Register[0]                = new Register();
            sut.Register[0].Contract       = "LightweightIOC.Tests.Mocks.ITest, LightweightIOC.Tests, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null";
            sut.Register[0].Implementation = "LightweightIOC.Tests.Mocks.TestImpl, LightweightIOC.Tests, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null";

            Assert.IsFalse(sut.IsRegistered(typeof(IServiceProvider)));
        }