예제 #1
0
        public void CombineThenRequirementsAreRemovedFromInventory()
        {
            _comb.Combine();

            Assert.True(!_store.Inventory.Contains("ea001"));
            Assert.True(!_store.Inventory.Contains("ea002"));
        }
예제 #2
0
 internal void onCombineClick()
 {
     _comb.Combine();
     Refresh();
     if (Academy != null)
     {
         Academy.RefreshAll(this);
     }
 }
예제 #3
0
    public static void Main()
    {
        int[] a     = { 1, 2, 3, 4 };
        var   combs = Combination <int> .Combine(a, 3, true);

        WriteLine("num of combs: {0}", combs.Count());
        foreach (var i in combs)
        {
            WriteLine(String.Join(", ", i));
        }
    }