Skip to content

Instantly share code, notes, and snippets.

@jindeveloper
Created October 31, 2022 17:01
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/fa6e3d81e13e39c846a3d60799d8f5ed to your computer and use it in GitHub Desktop.
Save jindeveloper/fa6e3d81e13e39c846a3d60799d8f5ed 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_CsharpSyntax_7()
{
var guidResult = Guid.TryParse("", out Guid result);
Assert.False(guidResult);
Assert.Equal(Guid.Empty, result);
}
[Fact]
public void ParseEmptyGuid_Test_CsharpSyntax_7_Using_Var()
{
var guidResult = Guid.TryParse("", out var 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