Skip to content

Instantly share code, notes, and snippets.

@EfrainReyes
Created November 25, 2013 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EfrainReyes/7650861 to your computer and use it in GitHub Desktop.
Save EfrainReyes/7650861 to your computer and use it in GitHub Desktop.
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);
}
}
}
@ajpinedam
Copy link

LOL!! Que buena esta.. Con el metodo Gregoriano "ToStringOrNull()" :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment