-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAdaptorsTests.cs
36 lines (33 loc) · 1021 Bytes
/
AdaptorsTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using Xunit;
using static MySQLCLRFunctions.Adaptors;
namespace MySQLCLRFunctions.Tests
{
public class AdaptorsTests
{
[Fact()]
public void VarBin2HexTest()
{
const string input = "input";
const string validoutput = input + "not implemented";
var output = "not implemented yet";
Assert.Equal(expected: validoutput, output);
}
[Fact()]
public void ADDateTimeString2DateTimeTest()
{
const string input = "210207";
DateTime validoutput = new DateTime(2021, 2, 7);
var output = ADDateTimeString2DateTime(input);
Assert.Equal(expected: validoutput, output);
}
[Fact()]
public void ToDateTest()
{
const string input = "210207";
DateTime validoutput = new DateTime(2021, 2, 7);
var output = ToDate(input);
Assert.Equal(expected: validoutput, output);
}
}
}