Example #1
0
        public void SetValueTest()
        {
            Vec3f v = new Vec3f(0, 0, 0);

            AssertThat(v.SetValue(0, 1)).IsEqualTo(new Vec3f(1, 0, 0));
            AssertThat(v.SetValue(1, 1)).IsEqualTo(new Vec3f(0, 1, 0));
            AssertThat(v.SetValue(2, 1)).IsEqualTo(new Vec3f(0, 0, 1));
            AssertThat(() => v.SetValue(3, 1)).ThrowsExactlyException <IndexOutOfRangeException>();
        }