public void CreateRoleArnObjectText_Will_Create_A_Valid_Object() { // Arrange / Act var result = ConfigMapEditor.CreateRoleArnObjectText( "roleArn", "userName", new[] { "group1", "group2" } ); // Assert var expected = "- rolearn: roleArn\n username: userName:{{SessionName}}\n groups:\n - group1\n - group2\n"; Assert.Equal(expected, result); }
public void CreateRoleArnObjectText_Will_Create_A_Valid_Object() { // Arrange / Act var result = ConfigMapEditor.CreateRoleArnObjectText( "roleArn", "userName", new[] { "group1", "group2" } ); // Assert var expected = "- rolearn: roleArn" + System.Environment.NewLine + " username: userName:{{SessionName}}" + System.Environment.NewLine + " groups:" + System.Environment.NewLine + " - group1" + System.Environment.NewLine + " - group2" + System.Environment.NewLine + ""; Assert.Equal(expected, result); }