public void CanAddAssemblyDirectories() { //- arrange var mapUnderTest = new AssemblyLocationMap(); //- act mapUnderTest.AddDirectory(@"C:\First"); mapUnderTest.AddDirectory(@"C:\Second"); //- assert mapUnderTest.Directories.Count().Should().Be(2); mapUnderTest.Directories.Should().ContainInOrder(new[] { @"C:\First", @"C:\Second" }); }
public void CanAddAssemblyLocations() { //- arrange var mapUnderTest = new AssemblyLocationMap(); //- act mapUnderTest.AddLocations(new Dictionary <string, string> { ["Assembly1.dll"] = @"C:\First\Assembly1.dll", ["Assembly2.dll"] = @"C:\Second\Assembly2.dll" }); mapUnderTest.AddLocations(new Dictionary <string, string> { ["Assembly3.dll"] = @"C:\Third\Assembly3.dll" }); //- assert mapUnderTest.FilePathByAssemblyName.Count.Should().Be(3); mapUnderTest.FilePathByAssemblyName["Assembly1.dll"].Should().Be(@"C:\First\Assembly1.dll"); mapUnderTest.FilePathByAssemblyName["Assembly2.dll"].Should().Be(@"C:\Second\Assembly2.dll"); mapUnderTest.FilePathByAssemblyName["Assembly3.dll"].Should().Be(@"C:\Third\Assembly3.dll"); }