Last active
August 29, 2015 14:00
-
-
Save default-kramer/11293879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void terse_test() | |
{ | |
doTheTest(); | |
// bucket # 01 02 03 04 05 06 07 08 09 10 11 12 | |
Assert.AreEqual(" | | 4| | 4|10| | 6| | 4| |10", TerseString()); | |
} | |
private string TerseString() | |
{ | |
return string.Join("|", buckets.Select(val => | |
{ | |
if (val == null) { return " "; } | |
else { return val.ToString().PadLeft(2, ' '); } | |
})); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment