88 references to Equal
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (4)
UnaryServerCallHandlerTests.cs (4)
1556Assert.Equal(11.1, request!.Data.SingleFloat, 3); 1557Assert.Equal(12.1, request!.Data.SingleDouble, 3); 1685Assert.Equal(4.1, request!.Wrappers.FloatValue.GetValueOrDefault(), 3); 1686Assert.Equal(5.1, request!.Wrappers.DoubleValue.GetValueOrDefault(), 3);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
Differencing\LongestCommonSubsequenceTests.cs (12)
259Assert.Equal(0.556, lcs.ComputeDistance(str1, str2), precision: 3); 288Assert.Equal(0.429, lcs.ComputeDistance(str1, str2), precision: 3); 324Assert.Equal(0.900, lcs.ComputeDistance(s, sx9), precision: 3); 325Assert.Equal(0.990, lcs.ComputeDistance(s, sx99), precision: 3); 326Assert.Equal(1.000, lcs.ComputeDistance(s, sx1000), precision: 3); 327Assert.Equal(1.000, lcs.ComputeDistance(s, sx100000000), precision: 3); 329Assert.Equal(0.900, lcs.ComputeDistance(sx9, s), precision: 3); 330Assert.Equal(0.990, lcs.ComputeDistance(sx99, s), precision: 3); 331Assert.Equal(1.000, lcs.ComputeDistance(sx1000, s), precision: 3); 332Assert.Equal(1.000, lcs.ComputeDistance(sx100000000, s), precision: 3); 334Assert.Equal(1.000, lcs.ComputeDistance(x10 + y1000, x10), precision: 3); 335Assert.Equal(0.5, lcs.ComputeDistance(x1000 + y1000, x1000), precision: 3);
Microsoft.DotNet.XUnitAssert.Tests (2)
EqualityAssertsTests.cs (2)
2007 Assert.Equal(0.11111, 0.11444, 2); 2017 var ex = Record.Exception(() => Assert.Equal(0.11111, 0.11444, 3));
Microsoft.Extensions.TimeProvider.Testing.Tests (2)
FakeTimeProviderTests.cs (2)
123Assert.Equal(1.234D, (double)perfDelta / timeProvider.TimestampFrequency, 3); 147Assert.Equal(1.234D, (double)perfDelta / timeProvider.TimestampFrequency, 3);
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
892Assert.Equal((double)expected, (double)actual, 0);
Microsoft.ML.TestFramework (1)
BaseTestBaseline.cs (1)
802Assert.Equal(Convert.ToDouble(expected), Convert.ToDouble(actual), precision);
System.Drawing.Common.Tests (64)
mono\System.Drawing\GraphicsTests.cs (38)
1670Assert.Equal((double)near.Width, center.Width, 1); 1671Assert.Equal((double)near.Height, center.Height, 1); 1673Assert.Equal((double)center.Width, far.Width, 1); 1674Assert.Equal((double)center.Height, far.Height, 1); 1703Assert.Equal((double)near.Width, center.Width, 0); 1704Assert.Equal((double)near.Height, center.Height, 0); 1706Assert.Equal((double)center.Width, far.Width, 0); 1707Assert.Equal((double)center.Height, far.Height, 0); 1734Assert.Equal((double)near.Width, center.Width, 1); 1735Assert.Equal((double)near.Height, center.Height, 1); 1737Assert.Equal((double)center.Width, far.Width, 1); 1738Assert.Equal((double)center.Height, far.Height, 1); 1767Assert.Equal((double)near.Width, center.Width, 1); 1768Assert.Equal((double)near.Height, center.Height, 1); 1770Assert.Equal((double)center.Width, far.Width, 1); 1771Assert.Equal((double)center.Height, far.Height, 1); 1815Assert.Equal((double)expected.Height, size.Height, 1); 1816Assert.Equal((double)expected.Width, size.Width, 1); 1827Assert.Equal((double)expected.Height, size.Height, 1); 1828Assert.Equal((double)expected.Width + i * space_width, size.Width, 1); 1838Assert.Equal((double)expected.Height, size.Height, 1); 1839Assert.Equal((double)expected.Width, size.Width, 1); 2213Assert.Equal(32.0, clip.Width, 4); 2214Assert.Equal(32.0, clip.Height, 4); 2219Assert.Equal(-32.0, rotclip.Y, 4); 2220Assert.Equal(32.0, rotclip.Width, 4); 2221Assert.Equal(32.0, rotclip.Height, 4); 2258Assert.Equal(-200.0, rotclipbound.Y, 4); 2259Assert.Equal(200.0, rotclipbound.Width, 4); 2260Assert.Equal(200.0, rotclipbound.Height, 4); 2264Assert.Equal(-100.0, rotclip.Y, 4); 2265Assert.Equal(100.0, rotclip.Width, 4); 2266Assert.Equal(100.0, rotclip.Height, 4); 2283Assert.Equal(100.0, vcb.Width, 4); 2284Assert.Equal(50.0, vcb.Height, 4); 2289Assert.Equal(-100.0, rvcb.Y, 4); 2290Assert.Equal(50.0, rvcb.Width, 4); 2291Assert.Equal(100.0, rvcb.Height, 4);
mono\System.Imaging\MetafileTest.cs (12)
356Assert.Equal(-1.0, elements[0], 5); 357Assert.Equal(0.0, elements[1], 5); 358Assert.Equal(0.0, elements[2], 5); 359Assert.Equal(-1.0, elements[3], 5); 360Assert.Equal(-2.0, elements[4], 5); 361Assert.Equal(-3.0, elements[5], 5); 365Assert.Equal(0.0, elements[0], 5); 366Assert.Equal(0.5, elements[1], 5); 367Assert.Equal(-2.0, elements[2], 5); 368Assert.Equal(0.0, elements[3], 5); 369Assert.Equal(-4.0, elements[4], 5); 370Assert.Equal(-1.0, elements[5], 5);
System\Drawing\FontTests.cs (2)
504Assert.Equal((double)font.GetHeight(graphics.DpiY), font.GetHeight(graphics), 5); 518Assert.Equal((double)expected, font.GetHeight(dpi), 5);
System\Drawing\Printing\PrinterSettingsTests.cs (12)
459Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.X, 0); 460Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.Y, graphic.VisibleClipBounds.Y, 0); 461Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 462Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 471Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 472Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 482Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.X, 0); 483Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.Y, graphic.VisibleClipBounds.Y, 0); 484Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 485Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 495Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 496Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0);
System.Windows.Forms.Tests (2)
System\Windows\Forms\OpacityConverterTests.cs (2)
41Assert.Equal(expected, Assert.IsType<double>(converter.ConvertFrom(value)), 5); 42Assert.Equal(expected, Assert.IsType<double>(converter.ConvertFrom(null, null, value)), 5);