public void Sort_SimpleProject_SortsReferences()
        {
            var source = SampleFile.Simple;
            var sorter = new ProjectFileSorter(source);
            var result = sorter.Sort();
            var idxA = result.IndexOf("ReferenceA");
            var idxB = result.IndexOf("ReferenceB");
            var idxC = result.IndexOf("ReferenceC");

            Assert.True(idxC > idxB, "Reference C doesn't seem to be after Reference B.");
            Assert.True(idxB > idxA, "Reference B doesn't seem to be after Reference A.");
        }
 public void Sort_EmptyString_ReturnsEmptyString()
 {
     var sorter = new ProjectFileSorter(string.Empty);
     var result = sorter.Sort();
     Assert.Equal(string.Empty, result);
 }