public void Field_Order_Matters() { var g = Guid.NewGuid(); var pb = new PatternB(g, 1000); var pc = new PatternC(g, 1000); Assert.AreNotEqual(pb.ToString(), pc.ToString()); }
public void Two_Patterns() { // actually ensures that the implementation supports two patterns var date = new DateTime(2009, 1, 1, 3, 4, 5); var pa = new PatternA(date, 12000, Guid.NewGuid(), 120); var pb = new PatternB(Guid.NewGuid(), 1000); Assert.AreNotEqual(pa.ToString(), pb.ToString()); }
public void Wrong_type_is_detected() { try { var original = new PatternB(Guid.NewGuid(), 1000); var name = UntypedBlobName.Print(original); UntypedBlobName.Parse <PatternA>(name); Assert.Fail("#A00"); } catch (ArgumentException) {} }
// 패턴 B 체크용 bool PatternB_AbleCheck() { m_patternBTick += Time.deltaTime; if (m_patternBTick >= GameSetting.BOSS1_PATTERN_B_ABLE_COOLTIME) { return(false); } // 이 시간 동안에는 패턴 B로 공격한다 if (!(m_pattern is PatternB)) { m_pattern = new PatternB(m_skeletonAnimation, ANI_AB_MOVE, ANI_ATTACK_B, m_name); } return(true); }