Created
November 25, 2013 23:37
-
-
Save EfrainReyes/7650861 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
using StringHelpers; | |
using NUnit.Framework; | |
namespace olakease.Tests { | |
[TestFixture] | |
public class SuperTest { | |
[Test] | |
public void NullObjectShouldNotThrowException() { | |
object obj = null; | |
string str = obj.ToStringOrNull(); | |
Assert.IsNull(str); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LOL!! Que buena esta.. Con el metodo Gregoriano "ToStringOrNull()" :p