public static Environment Create(string machineName, string environmentName) { return new Environment(machineName, environmentName); }
public void ThatWhenAnEnvironmentIsCreatedWithoutANameAnExceptionIsThrown() { try { Environment.Create("Test", string.Empty); Assert.Fail("An exception should be thrown"); } catch (Exception e) { Assert.IsNotInstanceOfType(e, typeof(AssertFailedException)); } }