public void IsVMSS_RetrunsExpectedResult(string roleInstanceId, bool expected) { IEnvironment env = new TestEnvironment(); if (roleInstanceId != null) { env.SetEnvironmentVariable(EnvironmentSettingNames.RoleInstanceId, roleInstanceId); } Assert.Equal(expected, EnvironmentExtensions.IsVMSS(env)); }