Skip to content

Instantly share code, notes, and snippets.

@jindeveloper
Created October 31, 2022 16:52
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 jindeveloper/0cc991f9fdf0f0d4e59e27876faa1ab4 to your computer and use it in GitHub Desktop.
Save jindeveloper/0cc991f9fdf0f0d4e59e27876faa1ab4 to your computer and use it in GitHub Desktop.
using System;
using Xunit;
namespace Inline_Out_Variables_Csharp
{
public class UnitTest1
{
[Fact]
public void ParseEmptyGuid_Test_OlderCsharpSyntax()
{
Guid result = Guid.Empty;
var guidResult = Guid.TryParse("", out result);
Assert.False(guidResult);
Assert.Equal(Guid.Empty, result);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment