Exemplo n.º 1
0
        public static void TryUnwrap_GivenValidInput_ReturnsExpectedValue()
        {
            _ = OracleUnwrapper.TryUnwrap(WrappedExample, out var unwrapped);

            var cleanExpected = TrimNewlines(ExpectedUnwrappedExample);
            var cleanResult   = TrimNewlines(unwrapped);

            Assert.That(cleanResult, Is.EqualTo(cleanExpected));
        }
Exemplo n.º 2
0
        public static void TryUnwrap_GivenInvalidInput_ReturnsExpectedValue()
        {
            _ = OracleUnwrapper.TryUnwrap(MissingMagicPrefixExample, out var unwrapped);

            Assert.That(unwrapped, Is.Null);
        }
Exemplo n.º 3
0
        public static void TryUnwrap_GivenInvalidInput_ReturnsFalse()
        {
            var result = OracleUnwrapper.TryUnwrap(MissingMagicPrefixExample, out _);

            Assert.That(result, Is.False);
        }
Exemplo n.º 4
0
        public static void TryUnwrap_GivenValidInput_ReturnsTrue()
        {
            var result = OracleUnwrapper.TryUnwrap(WrappedExample, out _);

            Assert.That(result, Is.True);
        }
Exemplo n.º 5
0
        public static void TryUnwrap_GivenNullInput_ReturnsExpectedValue()
        {
            _ = OracleUnwrapper.TryUnwrap(null, out var unwrapped);

            Assert.That(unwrapped, Is.Null);
        }
Exemplo n.º 6
0
        public static void TryUnwrap_GivenNullInput_ReturnsFalse()
        {
            var result = OracleUnwrapper.TryUnwrap(null, out _);

            Assert.That(result, Is.False);
        }