Example #1
0
        public void ToString_NoCulture()
        {
            var rect = new MinMaxRect()
            {
                Min = new float2(1, 1), Max = new float2(2.2f, 3.3f)
            };

            Assert.NotNull(rect.ToString());
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }