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