예제 #1
0
        public void AssemblyPathHelper_AssemblyWithCulture()
        {
            string           directoryPath    = @"C:\Alpha\Beta";
            AssemblyIdentity assemblyIdentity = new AssemblyIdentity(name: "Gamma", cultureName: "fr-FR");

            string expected = @"C:\Alpha\Beta\fr-FR\Gamma.dll";
            string actual   = InMemoryAssemblyProvider.GetCandidatePath(directoryPath, assemblyIdentity);

            Assert.Equal(expected, actual, StringComparer.OrdinalIgnoreCase);
        }
예제 #2
0
        public void AssemblyPathHelper_NeutralCultureAssembly()
        {
            string           directoryPath    = @"C:\Alpha\Beta";
            AssemblyIdentity assemblyIdentity = new AssemblyIdentity("Gamma");

            string expected = @"C:\Alpha\Beta\Gamma.dll";
            string actual   = InMemoryAssemblyProvider.GetCandidatePath(directoryPath, assemblyIdentity);

            Assert.Equal(expected, actual, StringComparer.OrdinalIgnoreCase);
        }