public void ToString_NoCulture() { var rect = new MinMaxRect() { Min = new float2(1, 1), Max = new float2(2.2f, 3.3f) }; Assert.NotNull(rect.ToString()); }
public void ToString_CultureDE() { var rect = new MinMaxRect() { Min = new float2(1, 1), Max = new float2(2.2f, 3.3f) }; var actual = rect.ToString(new CultureInfo("de-DE")); Assert.Equal("Min: (1; 1) Max: (2,2; 3,3)", actual); }
public void ToString_InvariantCulture() { var rect = new MinMaxRect() { Min = new float2(1, 1), Max = new float2(2.2f, 3.3f) }; var actual = rect.ToString(CultureInfo.InvariantCulture); Assert.Equal("Min: (1, 1) Max: (2.2, 3.3)", actual); }