示例#1
0
        public void ToString_IsString()
        {
            var rect = MinMaxRect.FromCenterSize(new float2(1, 1), new float2(2, 2));

            var actual = rect.ToString();

            Assert.Equal("Min: (0, 0) Max: (2, 2)", actual);
        }
示例#2
0
        public void Max_Is2()
        {
            var rect = MinMaxRect.FromCenterSize(new float2(1, 1), new float2(2, 2));

            var actual = rect.Max;

            Assert.Equal(new float2(2, 2), actual);
        }