Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to customize xunit input

using Xunit;

public class CalculatorTests
{
    [Theory]
    [InlineData(1, -1, true)]
    [InlineData(1, -2, false)]
    public void SumIsZero(int val1, int val2, bool expected)
    {
      Assert.True(((val1 + val2) == 0) == expected);
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get index of item in list 
Csharp :: c# json 
Csharp :: C# traverseall elements in class property 
Csharp :: how to generate random unique id in c# 
Csharp :: unity DOScale 
Csharp :: eventsource web api c# 
Csharp :: redis cache repository .net 
Csharp :: concatanate two lists in c# 
Csharp :: devexpress spreadsheet document source wpf 
Csharp :: asp net c# browser cursor wait 
Csharp :: C# check if object is default 
Csharp :: c# split quotation 
Csharp :: referans tipi nedir c# 
Csharp :: c# short to int 
Csharp :: wpf get name of clicked element 
Csharp :: unity sprite disappears when using transform.lookat 
Csharp :: uwp roaming data sample 
Csharp :: how to set the current user httpcontext.current.user asp.net -mvc 
Csharp :: unity error log 
Csharp :: c# in equivalent 
Csharp :: console writeline 
Csharp :: how to stop timer in c# windows application 
Csharp :: c# string across multiple lines 
Csharp :: ef core add OnModelCreating foreign key 
Csharp :: c# yield return ienumerable 
Csharp :: ssml 
Csharp :: 2d explosion unity 
Csharp :: assert.equal 
Csharp :: rotate skybox on x axis unity 
Csharp :: atan2 speed unity 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =