27 references to getMostCommonValue
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (27)
Attributes\AttributeTests_NullableContext.cs (27)
345Assert.Null(getMostCommonValue()); 346Assert.Null(getMostCommonValue((byte?)null)); 347Assert.Null(getMostCommonValue(null, null)); 348Assert.Equal((byte)0, getMostCommonValue(0)); 349Assert.Equal((byte)1, getMostCommonValue(1)); 350Assert.Equal((byte)2, getMostCommonValue(2)); 354Assert.Equal((byte)0, getMostCommonValue(0, 0)); 355Assert.Equal((byte)0, getMostCommonValue(0, 1)); 356Assert.Equal((byte)0, getMostCommonValue(1, 0)); 357Assert.Equal((byte)1, getMostCommonValue(1, 1)); 358Assert.Equal((byte)1, getMostCommonValue(1, 2)); 359Assert.Equal((byte)1, getMostCommonValue(2, 1)); 360Assert.Equal((byte)2, getMostCommonValue(2, 2)); 364Assert.Equal((byte)0, getMostCommonValue(0, null)); 365Assert.Equal((byte)0, getMostCommonValue(null, 0)); 366Assert.Equal((byte)1, getMostCommonValue(1, null)); 367Assert.Equal((byte)1, getMostCommonValue(null, 1)); 368Assert.Equal((byte)0, getMostCommonValue(0, 1, 2, null)); 369Assert.Equal((byte)0, getMostCommonValue(null, 2, 1, 0)); 370Assert.Equal((byte)1, getMostCommonValue(1, 2, null)); 371Assert.Equal((byte)1, getMostCommonValue(null, 2, 1)); 372Assert.Equal((byte)2, getMostCommonValue(null, 2, null)); 373Assert.Equal((byte)0, getMostCommonValue(0, 1, 0)); 374Assert.Equal((byte)0, getMostCommonValue(1, 0, 0)); 375Assert.Equal((byte)1, getMostCommonValue(1, 0, 1)); 376Assert.Equal((byte)1, getMostCommonValue(1, 2, 1)); 377Assert.Equal((byte)2, getMostCommonValue(2, 2, 1));