예제 #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}'");
            }
예제 #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}'");
            }
예제 #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}'");
            }
예제 #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}'");
            }