Exemple #1
0
            public void ClientRequestTokenShouldSerialize(
                CloudFormationStackEvent stackEvent
                )
            {
                var result = JsonSerializer.Serialize(stackEvent).Trim('"');
                var lines  = Regex.Unescape(result).Split('\n');

                lines.Should().Contain($"ClientRequestToken='{stackEvent.ClientRequestToken}'");
            }
Exemple #2
0
            public void ResourceStatusShouldSerialize(
                CloudFormationStackEvent stackEvent
                )
            {
                var result = JsonSerializer.Serialize(stackEvent).Trim('"');
                var lines  = Regex.Unescape(result).Split('\n');

                lines.Should().Contain($"ResourceStatus='{stackEvent.ResourceStatus}'");
            }
Exemple #3
0
            public void StackNameShouldSerialize(
                CloudFormationStackEvent stackEvent
                )
            {
                var result = JsonSerializer.Serialize(stackEvent).Trim('"');
                var lines  = Regex.Unescape(result).Split('\n');

                lines.Should().Contain($"StackName='{stackEvent.StackName}'");
            }
Exemple #4
0
            public void PrincipalIdShouldSerialize(
                CloudFormationStackEvent stackEvent
                )
            {
                var result = JsonSerializer.Serialize(stackEvent).Trim('"');
                var lines  = Regex.Unescape(result).Split('\n');

                lines.Should().Contain($"PrincipalId='{stackEvent.PrincipalId}'");
            }