Exemplo n.º 1
0
        public async Task Serialize_TestMethodResultEnum()
        {
            var grain = this.GrainFactory.GetGrain <IRoundtripSerializationGrain>(GetRandomGrainId());
            CampaignEnemyTestType result = await grain.GetEnemyType();

            Assert.Equal(CampaignEnemyTestType.Enemy2, result); //Enum return value wasn't transmitted properly
        }
Exemplo n.º 2
0
        public void Serialize_TestMethodResultEnum()
        {
            var grain = GrainClient.GrainFactory.GetGrain <IEnumResultGrain>(GetRandomGrainId());
            CampaignEnemyTestType result = grain.GetEnemyType().Result;

            Assert.Equal(CampaignEnemyTestType.Enemy2, result); //Enum return value wasn't transmitted properly
        }
Exemplo n.º 3
0
        public void Serialize_TestMethodResultEnum()
        {
            var grain = GrainClient.GrainFactory.GetGrain <IEnumResultGrain>(GetRandomGrainId());

            try
            {
                CampaignEnemyTestType result = grain.GetEnemyType().Result;
                Assert.AreEqual(CampaignEnemyTestType.Enemy2, result, "Enum return value wasn't transmitted properly");
            }
            catch (Exception exception)
            {
                Assert.Fail("Call to grain method with enum return threw exception: " + exception);
            }
        }
Exemplo n.º 4
0
 public void SetEnemy(int n, CampaignEnemyTestType enemy)
 {
     classArray[n].Enemy = enemy;
 }