public void FillTest7()
        {
            string message        = File.ReadAllText("..\\..\\..\\TestFiles\\Client_v7_7\\slots.txt");
            var    slotCollection = new SlotCollection();

            slotCollection.Fill(JsonMessageConnection.GetNextJsonMessage(ref message));
            Assert.AreEqual(2, slotCollection.Count);

            Assert.AreEqual(0, slotCollection[0].Id);
            Assert.AreEqual("FINISHING", slotCollection[0].Status);
            Assert.AreEqual(FahClientSlotStatus.Finishing, slotCollection[0].StatusEnum);
            Assert.AreEqual("smp:4", slotCollection[0].Description);
            Assert.AreEqual("beta", slotCollection[0].SlotOptions.FahClientType);
            Assert.AreEqual(FahClientType.Beta, slotCollection[0].SlotOptions.FahClientTypeEnum);
            Assert.AreEqual("big", slotCollection[0].SlotOptions.MaxPacketSize);
            Assert.AreEqual(MaxPacketSize.Big, slotCollection[0].SlotOptions.MaxPacketSizeEnum);
            Assert.AreEqual(100, slotCollection[0].SlotOptions.NextUnitPercentage);

            Assert.AreEqual(1, slotCollection[1].Id);
            Assert.AreEqual("RUNNING", slotCollection[1].Status);
            Assert.AreEqual(FahClientSlotStatus.Running, slotCollection[1].StatusEnum);
            Assert.AreEqual("gpu:0:\"GF106 [GeForce 450 GTS]\"", slotCollection[1].Description);
        }
        public void FillTest4()
        {
            string message        = File.ReadAllText("..\\..\\..\\TestFiles\\Client_v7_4\\slots.txt");
            var    slotCollection = new SlotCollection();

            slotCollection.Fill(JsonMessageConnection.GetNextJsonMessage(ref message));
            Assert.AreEqual(3, slotCollection.Count);

            Assert.AreEqual(0, slotCollection[0].Id);
            Assert.AreEqual("RUNNING", slotCollection[0].Status);
            Assert.AreEqual(FahClientSlotStatus.Running, slotCollection[0].StatusEnum);
            Assert.AreEqual("smp:4", slotCollection[0].Description);
            Assert.AreEqual("beta", slotCollection[0].SlotOptions.FahClientType);
            Assert.AreEqual(FahClientType.Beta, slotCollection[0].SlotOptions.FahClientTypeEnum);
            Assert.AreEqual("big", slotCollection[0].SlotOptions.MaxPacketSize);
            Assert.AreEqual(MaxPacketSize.Big, slotCollection[0].SlotOptions.MaxPacketSizeEnum);
            Assert.AreEqual(100, slotCollection[0].SlotOptions.NextUnitPercentage);

            Assert.AreEqual(1, slotCollection[1].Id);
            Assert.AreEqual("RUNNING", slotCollection[1].Status);
            Assert.AreEqual(FahClientSlotStatus.Running, slotCollection[1].StatusEnum);
            Assert.AreEqual("gpu:0:\"GT200 [GeForce GTX 260]\"", slotCollection[1].Description);
            Assert.AreEqual("beta", slotCollection[1].SlotOptions.FahClientType);
            Assert.AreEqual(FahClientType.Beta, slotCollection[1].SlotOptions.FahClientTypeEnum);
            Assert.AreEqual("low", slotCollection[1].SlotOptions.CorePriority);
            Assert.AreEqual(CorePriority.Low, slotCollection[1].SlotOptions.CorePriorityEnum);

            Assert.AreEqual(2, slotCollection[2].Id);
            Assert.AreEqual("RUNNING", slotCollection[2].Status);
            Assert.AreEqual(FahClientSlotStatus.Running, slotCollection[2].StatusEnum);
            Assert.AreEqual("gpu:1:\"G92 [GeForce 9800 GTX]\"", slotCollection[2].Description);
            Assert.AreEqual("beta", slotCollection[2].SlotOptions.FahClientType);
            Assert.AreEqual(FahClientType.Beta, slotCollection[2].SlotOptions.FahClientTypeEnum);
            Assert.AreEqual("low", slotCollection[2].SlotOptions.CorePriority);
            Assert.AreEqual(CorePriority.Low, slotCollection[2].SlotOptions.CorePriorityEnum);
        }