public void CanSerializeTestCaseWithSkipReason()
        {
            var target = CreateScenarioTestCase("SKIP REASON");

            target.SkipReason.Should().NotBeNullOrEmpty();

            TestSerializationInfo.Serialize(target);
        }
        public void CanSerializeTestCaseWithoutSkipReason()
        {
            var target = CreateScenarioTestCase();

            target.SkipReason.Should().BeNull();

            TestSerializationInfo.Serialize(target);
        }
        public void CanSerializeTestCaseWithSkipReason()
        {
            var target = CreateTestCase("ERROR MESSAGE");

            target.ErrorMessage.Should().NotBeNullOrEmpty();

            TestSerializationInfo.Serialize(target);
        }
        public void CanSerializeTestCaseWithoutErrorMessage()
        {
            var target = CreateTestCase();

            target.ErrorMessage.Should().BeNull();

            TestSerializationInfo.Serialize(target);
        }
Beispiel #5
0
        public void CanDeserializeIScenarioIdentifier()
        {
            var identifier = CreateScenarioIdentifier();

            var serialized             = TestSerializationInfo.Serialize(identifier);
            var deserializedIdentifier = (IScenarioIdentifier)serialized.Deserialize();

            deserializedIdentifier.Should().NotBeNull();
            deserializedIdentifier.Should().BeEquivalentTo(identifier);
        }
Beispiel #6
0
        public void CanDeserializeTestCaseWithoutErrorMessage()
        {
            var target = CreateTestCase();

            var serialized   = TestSerializationInfo.Serialize(target);
            var deserialized = (MultipleScenariosTestCase)serialized.Deserialize();

            deserialized.Should().NotBeNull();
            deserialized.Should().BeEquivalentTo(target);
        }
        public void CanDeserializeTestCaseWithSkipReason()
        {
            var target = CreateScenarioTestCase("SKIP REASON");

            target.SkipReason.Should().NotBeNullOrEmpty();

            var serialized   = TestSerializationInfo.Serialize(target);
            var deserialized = (ScenarioTestCase)serialized.Deserialize();

            deserialized.Should().NotBeNull();
            deserialized.Should().BeEquivalentTo(target);
        }
        public void CanDeserializeTestCaseWithSkipReason()
        {
            var target = CreateTestCase("ERROR MESSAGE");

            target.ErrorMessage.Should().NotBeNullOrEmpty();

            var serialized   = TestSerializationInfo.Serialize(target);
            var deserialized = (ExecutionErrorScenarioTestCase)serialized.Deserialize();

            deserialized.Should().NotBeNull();
            deserialized.Should().BeEquivalentTo(target);
        }
Beispiel #9
0
        public void CanSerializeIScenarioIdentifier()
        {
            var identifier = CreateScenarioIdentifier();

            TestSerializationInfo.Serialize(identifier);
        }