Created
October 31, 2022 17:01
-
-
Save jindeveloper/fa6e3d81e13e39c846a3d60799d8f5ed 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 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