public void TestMap_LabelDoesNotEndWithColon_Throws() { using var data = TestData.Create(); const string label = "W"; var mapper = new SharedDirectoryMapper(true, $@"\\{Environment.MachineName}\{data.name}", label); Assert.That(() => mapper.OnWrapperStarted(), Throws.Exception); Assert.That($@"{label}\", Does.Not.Exist); Assert.That(() => mapper.BeforeWrapperStopped(), Throws.Exception); }
public void TestDisableMapping() { using var data = TestData.Create(); const string label = "W:"; var mapper = new SharedDirectoryMapper(enableMapping: false, $@"\\{Environment.MachineName}\{data.name}", label); mapper.OnWrapperStarted(); Assert.That($@"{label}\", Does.Not.Exist); mapper.BeforeWrapperStopped(); }