コード例 #1
0
        public void Test_PigDaliy()
        {
            // given
            var expected = new Pig();

            // when
            var result = new HigherLayer("PIG").GetAnimal();

            // then

            Assert.AreEqual(expected.GetType(), result.GetType());
        }
コード例 #2
0
 protected override void OnAddToStageComplete()
 {
     base.OnAddToStageComplete();
     contactTypes.Add(pig.GetType(), OnPigContact);
 }