Пример #1
0
        public void CulturesWhen35IsRolled()
        {
            var tensSeed = d10Returns3;
            var onesSeed = d10Returns5;
            var d12Seed  = 0;

            var seeds             = new[] { tensSeed, onesSeed, d12Seed };
            var mockSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockSeedGenerator.Object);
            var characteristic  = characteristics.GetWorldHook().CharacteristicType;

            var expectedCharacteristic = "Cultures";

            Assert.AreEqual(expectedCharacteristic, characteristic);
        }
Пример #2
0
        public void SitesOfInterestWhen34IsRolled()
        {
            var tensSeed = d10Returns3;
            var onesSeed = d10Returns4;
            var d8Seed   = 0;

            var seeds             = new[] { tensSeed, onesSeed, d8Seed };
            var mockSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockSeedGenerator.Object);
            var characteristic  = characteristics.GetWorldHook().CharacteristicType;

            var expectedCharacteristic = "Sites of Interest";

            Assert.AreEqual(expectedCharacteristic, characteristic);
        }
Пример #3
0
        public void HistoricalWhen00IsRolled()
        {
            var tensSeed = d10Returns0;
            var onesSeed = d10Returns0;
            var d8Seed   = 0;

            var seeds             = new[] { tensSeed, onesSeed, d8Seed };
            var mockSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockSeedGenerator.Object);
            var characteristic  = characteristics.GetWorldHook().CharacteristicType;

            var expectedCharacteristic = "Historical";

            Assert.AreEqual(expectedCharacteristic, characteristic);
        }
Пример #4
0
        public void ClimateOrLandformWhen24IsRolled()
        {
            var tensSeed = d10Returns2;
            var onesSeed = d10Returns4;
            var d8Seed   = 0;
            var d6Seed   = 0;

            var seeds             = new[] { tensSeed, onesSeed, d8Seed, d6Seed };
            var mockSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockSeedGenerator.Object);
            var characteristic  = characteristics.GetWorldHook().CharacteristicType;

            var expectedCharacteristic = "Climate or Landform";

            Assert.AreEqual(expectedCharacteristic, characteristic);
        }
Пример #5
0
        public void GetFullWorldHookDescription_Cultures_Feudal()
        {
            var d10TensSeed = d10Returns5;
            var d10OnesSeed = d10Returns4;
            var d12Seed     = 5;

            var seeds = new[] { d10TensSeed, d10OnesSeed, d12Seed };
            var mockCharacteristicSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockCharacteristicSeedGenerator.Object);
            var hookFactory     = characteristics.GetWorldHook();

            var hook = hookFactory.GetHook();

            var expectedHook = @"Characteristic: Cultures
Subtype: Feudal";

            Assert.AreEqual(expectedHook, hook);
        }
Пример #6
0
        public void GetFullWorldHookDescription_SitesOfInterest_Dungeons()
        {
            var d10TensSeed = d10Returns3;
            var d10OnesSeed = d10Returns0;
            var d8Seed      = d8Returns3;

            var seeds = new[] { d10TensSeed, d10OnesSeed, d8Seed };
            var mockCharacteristicSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockCharacteristicSeedGenerator.Object);
            var hookFactory     = characteristics.GetWorldHook();

            var hook = hookFactory.GetHook();

            var expectedHook = @"Characteristic: Sites of Interest
Subtype: Dungeons";

            Assert.AreEqual(expectedHook, hook);
        }
Пример #7
0
        public void GetFullWorldHookDescription_Historical_Insurrection()
        {
            var d10TensSeed = d10Returns9;
            var d10OnesSeed = d10Returns7;
            var d8Seed      = d8Returns6;

            var seeds = new[] { d10TensSeed, d10OnesSeed, d8Seed };
            var mockCharacteristicSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockCharacteristicSeedGenerator.Object);
            var hookFactory     = characteristics.GetWorldHook();

            var hook = hookFactory.GetHook();

            var expectedHook = @"Characteristic: Historical
Subtype: Insurrection";

            Assert.AreEqual(expectedHook, hook);
        }
Пример #8
0
        public void GetFullWorldHookDescription_Situations_Warfare()
        {
            var d10TensSeed = d10Returns7;
            var d10OnesSeed = d10Returns8;
            var d8Seed      = d8Returns8;
            var d6Seed      = d6Returns4;

            var seeds = new[] { d10TensSeed, d10OnesSeed, d8Seed, d6Seed };
            var mockCharacteristicSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockCharacteristicSeedGenerator.Object);
            var hookFactory     = characteristics.GetWorldHook();

            var hook = hookFactory.GetHook();

            var expectedHook = @"Characteristic: Situation
Subtype: Warfare";

            Assert.AreEqual(expectedHook, hook);
        }
Пример #9
0
        public void GetFullWorldHookDescription_ClimateOrLandform_PlainsOrSteppes()
        {
            var d10TensSeed = d10Returns0;
            var d10OnesSeed = d10Returns1;
            var d8Seed      = d8Returns2;
            var d6Seed      = d6Returns5;

            var seeds = new[] { d10TensSeed, d10OnesSeed, d8Seed, d6Seed };
            var mockCharacteristicSeedGenerator = SeedHelper.GetMockSeedGenerator(seeds);

            var characteristics = new Characteristics(mockCharacteristicSeedGenerator.Object);
            var hookFactory     = characteristics.GetWorldHook();

            var hook = hookFactory.GetHook();

            var expectedHook = @"Characteristic: Climate or Landform
Subtype: Plains/steppes";

            Assert.AreEqual(expectedHook, hook);
        }