Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Christmas   (RSS)
For easier reference, here are the 2008 advent calendar links: Why and advent calendar? What problem? Final thoughts . How: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Read More...
Writing all these tests I sometimes felt that the changes between two days was not significant. And sometimes I felt there were versions that did not make it into this advent calendar. But I stuck with the versions you have seen since I think they represent Read More...
1: namespace Advent24 2: { 3: public class FileUtil_Tests 4: { 5: public FileUtilWithDelete Given_A_Readable_File( string content) 6: { 7: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 8: file.Create(content); 9: return file; 10: Read More...
1: namespace Advent23 2: { 3: public class FileUtil_Tests_With_Readable_File 4: { 5: private FileUtilWithDelete Given_A_Readable_File( string content) 6: { 7: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 8: file.Create(content); Read More...
1: namespace Advent22 2: { 3: public class FileUtil_Specification 4: { 5: private FileUtilWithDelete Given_A_Readable_File( string content) 6: { 7: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 8: file.Create(content); 9: return Read More...
1: public class Advent21 2: { 3: private FileUtilWithDelete Given_A_Readable_File( string content) 4: { 5: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 6: file.Create(content); 7: return file; 8: } 9: 10: private FileUtilWithDelete Read More...
1: public class Advent20 2: { 3: private FileUtilWithDelete Given_A_File( string content, bool readable) 4: { 5: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 6: file.Create(content); 7: file.Readable = readable; 8: return file; Read More...
1: public class Advent19 2: { 3: private FileUtilWithDelete SetUp( string content, bool readable) 4: { 5: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 6: file.Create(content); 7: file.Readable = readable; 8: return file; 9: } 10: Read More...
1: public class Advent18 2: { 3: private FileUtilWithDelete SetUp( string content, bool readable) 4: { 5: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 6: file.Create(content); 7: file.Readable = readable; 8: return file; 9: } 10: Read More...
1: public class Advent17 2: { 3: private FileUtilWithDelete SetUp( string content, bool readable) 4: { 5: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 6: file.Create(content); 7: file.Readable = readable; 8: return file; 9: } 10: Read More...
1: public class Advent16 2: { 3: private FileUtilWithDelete SetUp( string content, bool readable) 4: { 5: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 6: file.Create(content); 7: file.Readable = readable; 8: return file; 9: } 10: Read More...
1: public class Advent15 2: { 3: private FileUtilWithDelete SetUpReadable( string content) 4: { 5: FileUtilWithDelete file = new FileUtilWithDelete( "SomeFile.txt" ); 6: file.Create(content); 7: return file; 8: } 9: 10: private FileUtilWithDelete SetUpUnreadable( Read More...
1: public class Advent14 2: { 3: private IFileUtil m_file; 4: 5: private void SetUpReadable( string content) 6: { 7: m_file = new FileUtilWithDelete(Path.GetTempFileName()); 8: m_file.Create(content); 9: } 10: 11: private void SetUpUnreadable( string Read More...
1: public class Advent13 : IDisposable 2: { 3: private IFileUtil m_file; 4: 5: private void SetUpReadable( string content) 6: { 7: m_file = new FileUtil( "SomeFile.txt" ); 8: m_file.Create(content); 9: } 10: 11: private void SetUpUnreadable( string content) Read More...
1: public class Advent12 : IDisposable 2: { 3: private IFileUtil m_file; 4: 5: private void SetUp( string content) 6: { 7: m_file = new FileUtil( "SomeFile.txt" ); 8: m_file.Create(content); 9: } 10: 11: public void Dispose() 12: { 13: m_file.Delete(); Read More...
More Posts Next page »
 
Page view tracker