using System; using System.Collections.Generic; using System.Text; using UnitTestSharp; using Sunweaver.Commands.Abstracts; namespace Sunweaver.UnitTests { public class DNASystemTests : TestFixture { public void SetsUpCommandListAtStart() { CheckTrue( Sunweaver.DNASystem.CommandList["add"].ToString() == "add"); } const int NUM_RUNS = 10; public void testRandomBasePairMethod() { for (int i = 0; i < NUM_RUNS; i++) { BasePair command = DNASystem.CommandListClass.randomBasePair(1, 0, 0, 0); BasePair number = DNASystem.CommandListClass.randomBasePair(0, 1, 0, 0); BasePair reference = DNASystem.CommandListClass.randomBasePair(0, 0, 1, 0); BasePair store = DNASystem.CommandListClass.randomBasePair(0, 0, 0, 1); CheckTrue(DNASystem.CommandListClass.Commands.ContainsValue(command.GetType())); CheckNotNull(number); CheckNotNull(reference); CheckNotNull(store); } } } }