Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 protected ListGenerator()
 {
     SelectedProgramBanks      = new ObservableBankCollection <IProgramBank>();
     SelectedCombiBanks        = new ObservableBankCollection <ICombiBank>();
     SelectedDrumKitBanks      = new ObservableBankCollection <IDrumKitBank>();
     SelectedDrumPatternBanks  = new ObservableBankCollection <IDrumPatternBank>();
     SelectedWaveSequenceBanks = new ObservableBankCollection <IWaveSequenceBank>();
 }
        public void TestSelectedCombiBanks()
        {
            // Set non defaults and run.
            ObservableBankCollection <ICombiBank> selection = new ObservableBankCollection <ICombiBank>
            {
                (ICombiBank)_pcgMemory.CombiBanks[0],
                (ICombiBank)_pcgMemory.CombiBanks[1]
            };

            _generator.SelectedCombiBanks = selection;
            Run();

            // No I-C and U-A combi banks.
            AssertNotExists("Combi        I-C");
            AssertNotExists("Combi        U-A");
            Assert.AreEqual(1954, _lines.Length);
        }
        public void TestSelectedCombiBanks()
        {
            // Set non defaults and run.
            var selection = new ObservableBankCollection <ICombiBank>
            {
                (ICombiBank)(_pcgMemory.CombiBanks[0]),
                (ICombiBank)(_pcgMemory.CombiBanks[1])
            };

            _generator.SelectedCombiBanks = selection;
            Run();

            // No I-C and U-A combi banks.
            AssertNotExists("I-C000: ");
            AssertNotExists("U-A000: ");

            Assert.AreEqual(256, _lines.Length);
        }
        public void TestSelectedProgramBanks()
        {
            // Set non defaults and run.
            var selection = new ObservableBankCollection <IProgramBank>
            {
                (IProgramBank)(_pcgMemory.ProgramBanks[0]),
                (IProgramBank)(_pcgMemory.ProgramBanks[1])
            };

            _generator.SelectedProgramBanks = selection;
            Run();

            // No I-C and U-A program banks.
            AssertNotExists(": I-C");
            AssertNotExists(": U-A");

            Assert.AreEqual(480, _lines.Length);
        }
        public void TestSelectedProgramBanks()
        {
            // Set non defaults and run.
            ObservableBankCollection <IProgramBank> selection = new ObservableBankCollection <IProgramBank>
            {
                (IProgramBank)_pcgMemory.ProgramBanks[0],
                (IProgramBank)_pcgMemory.ProgramBanks[1]
            };

            _generator.SelectedProgramBanks = selection;
            Run();

            // No I-C and U-A program banks.
            AssertNotExists(" Program      I-C000");
            AssertNotExists(" Program      U-A000");

            Assert.AreEqual(768, _lines.Length);
        }
Ejemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="pcgMemory"></param>
 protected Banks(IPcgMemory pcgMemory)
 {
     BankCollection = new ObservableBankCollection <IBank>();
     _pcgMemory     = pcgMemory;
 }