[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);
 }
Exemple #3
0
        }                                               // 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);
        }
Exemple #4
0
 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);
 }