public static Create ( string machineName, string environmentName ) : Environment | ||
machineName | string | |
environmentName | string | |
return | Environment |
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)); } }