コード例 #1
0
        public void Should_Correctly_Compare_Objects(
            TestStatusEntity?firstInsert,
            TestStatusEntity secondInsert,
            CacheComparisonResult expectedResult)
        {
            _cache.Clear();

            if (firstInsert != null)
            {
                _cache.Upsert(firstInsert, out _);
            }

            _cache.Upsert(secondInsert, out var result);

            result.Should().Be(expectedResult);
        }