|
4 | 4 | using Microsoft.Extensions.Caching.Memory;
|
5 | 5 | using Xunit;
|
6 | 6 |
|
7 |
| -namespace MyCSharp.HttpUserAgentParser.MemoryCache.UnitTests |
| 7 | +namespace MyCSharp.HttpUserAgentParser.MemoryCache.UnitTests; |
| 8 | + |
| 9 | +public class HttpUserAgentParserMemoryCachedProviderOptionsTests |
8 | 10 | {
|
9 |
| - public class HttpUserAgentParserMemoryCachedProviderOptionsTests |
| 11 | + [Fact] |
| 12 | + public void Ctor() |
10 | 13 | {
|
11 |
| - [Fact] |
12 |
| - public void Ctor() |
13 |
| - { |
14 |
| - MemoryCacheOptions cacheOptions = new(); |
15 |
| - MemoryCacheEntryOptions cacheEntryOptions = new(); |
| 14 | + MemoryCacheOptions cacheOptions = new(); |
| 15 | + MemoryCacheEntryOptions cacheEntryOptions = new(); |
16 | 16 |
|
17 |
| - HttpUserAgentParserMemoryCachedProviderOptions options = new(cacheOptions, cacheEntryOptions); |
| 17 | + HttpUserAgentParserMemoryCachedProviderOptions options = new(cacheOptions, cacheEntryOptions); |
18 | 18 |
|
19 |
| - options.CacheOptions.Should().Be(cacheOptions); |
20 |
| - options.CacheEntryOptions.Should().Be(cacheEntryOptions); |
21 |
| - } |
| 19 | + options.CacheOptions.Should().Be(cacheOptions); |
| 20 | + options.CacheEntryOptions.Should().Be(cacheEntryOptions); |
| 21 | + } |
22 | 22 |
|
23 |
| - [Fact] |
24 |
| - public void Ctor_MemoryCacheOptions() |
25 |
| - { |
26 |
| - MemoryCacheOptions cacheOptions = new(); |
| 23 | + [Fact] |
| 24 | + public void Ctor_MemoryCacheOptions() |
| 25 | + { |
| 26 | + MemoryCacheOptions cacheOptions = new(); |
27 | 27 |
|
28 |
| - HttpUserAgentParserMemoryCachedProviderOptions options = new(cacheOptions); |
| 28 | + HttpUserAgentParserMemoryCachedProviderOptions options = new(cacheOptions); |
29 | 29 |
|
30 |
| - options.CacheOptions.Should().Be(cacheOptions); |
31 |
| - options.CacheEntryOptions.Should().NotBeNull(); |
32 |
| - } |
| 30 | + options.CacheOptions.Should().Be(cacheOptions); |
| 31 | + options.CacheEntryOptions.Should().NotBeNull(); |
| 32 | + } |
33 | 33 |
|
34 |
| - [Fact] |
35 |
| - public void Ctor_MemoryCacheEntryOptions() |
36 |
| - { |
37 |
| - MemoryCacheEntryOptions cacheEntryOptions = new(); |
| 34 | + [Fact] |
| 35 | + public void Ctor_MemoryCacheEntryOptions() |
| 36 | + { |
| 37 | + MemoryCacheEntryOptions cacheEntryOptions = new(); |
38 | 38 |
|
39 |
| - HttpUserAgentParserMemoryCachedProviderOptions options = new(cacheEntryOptions); |
| 39 | + HttpUserAgentParserMemoryCachedProviderOptions options = new(cacheEntryOptions); |
40 | 40 |
|
41 |
| - options.CacheOptions.Should().NotBeNull(); |
42 |
| - options.CacheEntryOptions.Should().Be(cacheEntryOptions); |
43 |
| - } |
| 41 | + options.CacheOptions.Should().NotBeNull(); |
| 42 | + options.CacheEntryOptions.Should().Be(cacheEntryOptions); |
| 43 | + } |
44 | 44 |
|
45 |
| - [Fact] |
46 |
| - public void Ctor_Empty() |
47 |
| - { |
48 |
| - HttpUserAgentParserMemoryCachedProviderOptions options = new(); |
| 45 | + [Fact] |
| 46 | + public void Ctor_Empty() |
| 47 | + { |
| 48 | + HttpUserAgentParserMemoryCachedProviderOptions options = new(); |
49 | 49 |
|
50 |
| - options.CacheOptions.Should().NotBeNull(); |
51 |
| - options.CacheEntryOptions.Should().NotBeNull(); |
52 |
| - } |
| 50 | + options.CacheOptions.Should().NotBeNull(); |
| 51 | + options.CacheEntryOptions.Should().NotBeNull(); |
53 | 52 | }
|
54 | 53 | }
|
0 commit comments