Пример #1
0
        public void MapFirst_SourceIsDefault_ExpectDefault()
        {
            var source = new TaggedUnion <RefType, StructType?>();

            var mappedValue = PlusFifteen;
            var actual      = source.MapFirst(_ => mappedValue);

            var expected = default(TaggedUnion <int, StructType?>);

            Assert.AreEqual(expected, actual);
        }