コード例 #1
0
        public void PlayerCanViewCustomSpecialistAfterCreating()
        {
            String specName = "MyCustomSpecialist";
            SubmitCustomSpecialistResponse response = submitCustomSpecialist(specName);

            string specUuid = response.SpecialistConfigurationId;

            GetCustomSpecialistsResponse specResponse = client.GetCustomSpecialists(new GetCustomSpecialistsRequest());

            Assert.IsTrue(specResponse.CustomSpecialists.Count == 1);
            Assert.AreEqual(specUuid, specResponse.CustomSpecialists[0].Id);
            Assert.AreEqual(specName, specResponse.CustomSpecialists[0].SpecialistName);
            Assert.AreEqual(1, specResponse.CustomSpecialists[0].Priority);
            Assert.AreEqual(EffectModifier.Driller, specResponse.CustomSpecialists[0].SpecialistEffects[0].EffectModifier);
            // Ensure some of the specialist details are the same!
        }