[Test] public void TypeIsFoundInLoadedAssembly() { applicationUnderTest.AddAssembly("testtarget.dll"); RuntimeType sample = GetType("fitSharp.TestTarget.SampleDomain"); Assert.AreEqual("fitSharp.TestTarget.SampleDomain", sample.Type.FullName); }
[Test] public void JarFilesAreIgnored() { SetUpMockDomain(); applicationUnderTest.AddAssembly("testtarget.jAr"); domain.Verify(d => d.LoadAssembly(It.IsAny <string>()), Times.Never()); Assert.IsTrue(true); }
} // todo: test only -> factory public Service(Memory memory) : base(memory, memory.GetItem <Operators>()) { ApplicationUnderTest.AddNamespace("fit"); ApplicationUnderTest.AddNamespace("fitSharp.Fit.Fixtures"); ApplicationUnderTest.AddAssembly(Assembly.GetExecutingAssembly().CodeBase); memory.GetItem <Operators>().AddNamespaces(ApplicationUnderTest); }
public Service(Configuration configuration) : base(configuration, configuration.GetItem <Operators>()) { ApplicationUnderTest.AddNamespace("fit"); ApplicationUnderTest.AddNamespace("fitSharp.Fit.Fixtures"); ApplicationUnderTest.AddAssembly(Assembly.GetExecutingAssembly().CodeBase); configuration.GetItem <Operators>().AddNamespaces(ApplicationUnderTest); }