public void ContainsValidAllocations()
        {
            // Arrange
            string TANFileContent = @"
                // The number of tasks and processors per allocation.
                TASKS,5
                PROCESSORS,3

                // The number of allocations in this file.
                ALLOCATIONS,2

                // The set of allocations.
                // The ith row is the allocation of tasks to the ith processor.
                // The jth column is the allocation of the jth task to a processor.
                ALLOCATION-ID,1
                1,1,0,0,0
                0,0,1,1,0
                0,0,0,0,1

                ALLOCATION-ID,2
                1,1,0,0,0
                0,0,0,0,1
                0,0,1,1,0
            ";

            // Act
            string errorMsg = TaskAllocationFileValidator.ContainsValidAllocations(TANFileContent);

            // Assert
            Assert.AreEqual("", errorMsg);
        }
        public void InvalidTaskAllocation()
        {
            // Arrange
            string TANFileContent = @"
                ALLOCATIONS,1

                ALLOCATION-ID,1
                1,1,0,0,0
                1,0,1,1,0
                0,0,0,0,1
            ";

            // Act
            string errorMsg = TaskAllocationFileValidator.ContainsValidAllocations(TANFileContent);

            // Assert
            Assert.AreEqual(TaskAllocationFileValidator.AllocationErrors["InvalidTaskAllocation"], errorMsg);
        }