Reformat / cleanup
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
using System.Collections.Concurrent;
|
||||
using ZB.MOM.WW.CBDD.Bson;
|
||||
using ZB.MOM.WW.CBDD.Core.Collections;
|
||||
using ZB.MOM.WW.CBDD.Core.Indexing;
|
||||
using ZB.MOM.WW.CBDD.Shared.TestDbContext_TestDbContext_Mappers;
|
||||
using System.Text;
|
||||
using Xunit;
|
||||
|
||||
namespace ZB.MOM.WW.CBDD.Tests;
|
||||
|
||||
public class SchemaTests
|
||||
{
|
||||
private static readonly System.Collections.Concurrent.ConcurrentDictionary<string, ushort> _testKeyMap = new(StringComparer.OrdinalIgnoreCase);
|
||||
private static readonly ConcurrentDictionary<string, ushort> _testKeyMap = new(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
static SchemaTests()
|
||||
{
|
||||
ushort id = 1;
|
||||
foreach (var k in new[] { "_id", "name", "mainaddress", "otheraddresses", "tags", "secret", "street", "city" }) _testKeyMap[k] = id++;
|
||||
foreach (string k in new[]
|
||||
{ "_id", "name", "mainaddress", "otheraddresses", "tags", "secret", "street", "city" })
|
||||
_testKeyMap[k] = id++;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes UsedKeys_ShouldReturnAllKeys.
|
||||
/// Executes UsedKeys_ShouldReturnAllKeys.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void UsedKeys_ShouldReturnAllKeys()
|
||||
@@ -33,11 +33,10 @@ public class SchemaTests
|
||||
keys.ShouldContain("secret");
|
||||
keys.ShouldContain("street");
|
||||
keys.ShouldContain("city");
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes GetSchema_ShouldReturnBsonSchema.
|
||||
/// Executes GetSchema_ShouldReturnBsonSchema.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void GetSchema_ShouldReturnBsonSchema()
|
||||
@@ -60,4 +59,4 @@ public class SchemaTests
|
||||
// Address in MockEntities has City (Nested)
|
||||
addressField.NestedSchema.Fields.ShouldContain(f => f.Name == "city");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user