コード例 #1
0
        public void bool1_ToString_PrintValue_SameStringAsNativeType(
            [Values(false, true)] bool value)
        {
            bool1 testValue = new bool1(value);

            Assert.AreEqual(testValue.ToString(), value.ToString());
        }
コード例 #2
0
        public void bool1_OperatorBool1_CompareCastBoolWithObject_ReturnSameValue(
            [Values(false, true)] bool value)
        {
            bool1 testValue = new bool1(value);

            Assert.AreEqual((bool1)value, testValue);
        }
コード例 #3
0
        public void bool1_OperatorBool_CompareWithOriginalValue_ReturnOriginalValue(
            [Values(false, true)] bool value)
        {
            bool1 testValue = new bool1(value);

            Assert.AreEqual(value, (bool)testValue);
        }
 public void StartMoving()
 {
     goToDestination       = true;
     destinationInView     = false;
     destinationReached    = false;
     distanceToDestination = -1f;
 }
コード例 #5
0
        public void bool1_Constructor_CreateDifferentObjects_ReturnDifferentValue(
            [Values(false, true)] bool value)
        {
            bool1 firstValue  = new bool1(value);
            bool1 secondValue = new bool1(!value);

            Assert.AreNotEqual(firstValue, secondValue);
            Assert.AreNotSame(firstValue, secondValue);
        }
 public void MoveTo(float3 dest)
 {
     requestedDestination    = dest;
     newDestinationRequested = true;
 }