forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpecialReferenceTests.cs
More file actions
36 lines (32 loc) · 920 Bytes
/
SpecialReferenceTests.cs
File metadata and controls
36 lines (32 loc) · 920 Bytes
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 System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Simple.Data.UnitTest
{
using NUnit.Framework;
[TestFixture]
class SpecialReferenceTests
{
[Test]
public void TestExistsReference()
{
var actual = new ExistsSpecialReference();
Assert.AreEqual("EXISTS", actual.Name);
}
[Test]
public void TestCountReference()
{
var actual = new CountSpecialReference();
Assert.AreEqual("COUNT", actual.Name);
}
[Test]
public void TestSimpleEmptyExpression()
{
var actual = new SimpleEmptyExpression();
Assert.IsNull(actual.LeftOperand);
Assert.AreEqual(SimpleExpressionType.Empty, actual.Type);
Assert.IsNull(actual.RightOperand);
}
}
}