MapSwitchesToCharacterSets() public method

public MapSwitchesToCharacterSets ( IEnumerable onSwitches ) : List
onSwitches IEnumerable
return List
        public void ShouldMapUppercaseSwitchToCharacterset()
        {
            var vm = new PasswordGeneratorViewModel(null, null);
            vm.UppercaseSwitch = true;
             var onSwitches = vm.OnSwitches();
             var charSets = vm.MapSwitchesToCharacterSets(onSwitches);

             Assert.AreEqual(1, charSets.Count());
             Assert.AreEqual(PasswordGeneratorCharacterSets.Uppercase, charSets.First());
        }
        public async Task ShouldCalledGeneratePassword()
        {
            var pwGen =new MockPasswordGenerator();
            var vm = new PasswordGeneratorViewModel(pwGen, null);
            vm.Length = 30;
            vm.UppercaseSwitch = true;
            var onSwitches = vm.OnSwitches();
            var charSets = vm.MapSwitchesToCharacterSets(onSwitches);

            var p = await vm.GeneratePassword(charSets);

            Assert.AreEqual(vm.Length, pwGen.Length);
            CollectionAssert.AreEqual(charSets, pwGen.CharacterSet);
        }