public void ClientRequestTokenShouldSerialize( CloudFormationStackEvent stackEvent ) { var result = JsonSerializer.Serialize(stackEvent).Trim('"'); var lines = Regex.Unescape(result).Split('\n'); lines.Should().Contain($"ClientRequestToken='{stackEvent.ClientRequestToken}'"); }
public void ResourceStatusShouldSerialize( CloudFormationStackEvent stackEvent ) { var result = JsonSerializer.Serialize(stackEvent).Trim('"'); var lines = Regex.Unescape(result).Split('\n'); lines.Should().Contain($"ResourceStatus='{stackEvent.ResourceStatus}'"); }
public void StackNameShouldSerialize( CloudFormationStackEvent stackEvent ) { var result = JsonSerializer.Serialize(stackEvent).Trim('"'); var lines = Regex.Unescape(result).Split('\n'); lines.Should().Contain($"StackName='{stackEvent.StackName}'"); }
public void PrincipalIdShouldSerialize( CloudFormationStackEvent stackEvent ) { var result = JsonSerializer.Serialize(stackEvent).Trim('"'); var lines = Regex.Unescape(result).Split('\n'); lines.Should().Contain($"PrincipalId='{stackEvent.PrincipalId}'"); }