24 references to Verify
Microsoft.CodeAnalysis.UnitTests (24)
InternalUtilities\OneOrManyTests.cs (24)
37Verify(OneOrMany.Create(ImmutableArray<int>.Empty)); 38Verify(new OneOrMany<int>(ImmutableArray<int>.Empty)); 44Verify(OneOrMany.Create(1), 1); 45Verify(OneOrMany.Create(ImmutableArray.Create(2)), 2); 46Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Add(3), 3); 47Verify(new OneOrMany<int>(1), 1); 48Verify(new OneOrMany<int>(ImmutableArray.Create(2)), 2); 49Verify(new OneOrMany<int>(ImmutableArray<int>.Empty).Add(3), 3); 55Verify(OneOrMany.Create(ImmutableArray.Create(1, 2, 3)).Add(4), 1, 2, 3, 4); 56Verify(OneOrMany.Create(ImmutableArray.Create(1, 2, 3, 4)), 1, 2, 3, 4); 57Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Add(1).Add(2).Add(3).Add(4), 1, 2, 3, 4); 58Verify(new OneOrMany<int>(ImmutableArray.Create(1, 2, 3)).Add(4), 1, 2, 3, 4); 59Verify(new OneOrMany<int>(ImmutableArray.Create(1, 2, 3, 4)), 1, 2, 3, 4); 60Verify(new OneOrMany<int>(ImmutableArray<int>.Empty).Add(1).Add(2).Add(3).Add(4), 1, 2, 3, 4); 61Verify(OneOrMany.Create(ImmutableArray.Create(1)).Add(4), 1, 4); 62Verify(OneOrMany.Create(ImmutableArray.Create(1)), 1); 84Verify(OneOrMany.Create(1).Select(i => i + 1), 2); 85Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Select(i => i + 1)); 86Verify(OneOrMany.Create(ImmutableArray.Create(1)).Select(i => i + 1), 2); 87Verify(OneOrMany.Create(ImmutableArray.Create(1, 2)).Select(i => i + 1), 2, 3); 93Verify(OneOrMany.Create(1).Select((i, a) => i + a, 1), 2); 94Verify(OneOrMany.Create(ImmutableArray<int>.Empty).Select((i, a) => i + a, 1)); 95Verify(OneOrMany.Create(ImmutableArray.Create(1)).Select((i, a) => i + a, 1), 2); 96Verify(OneOrMany.Create(ImmutableArray.Create(1, 2)).Select((i, a) => i + a, 1), 2, 3);