forked from nikhilk/scriptsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemberTests.cs
More file actions
73 lines (62 loc) · 1.65 KB
/
Copy pathMemberTests.cs
File metadata and controls
73 lines (62 loc) · 1.65 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// MemberTests.cs
// Script#/Tests/ScriptSharp
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ScriptSharp.Tests.Core;
namespace ScriptSharp.Tests {
[TestClass]
public sealed class MemberTests : CompilationTest {
[TestMethod]
public void TestConstructors() {
RunTest((c) => {
c.AddSource("Code.cs");
});
}
[TestMethod]
public void TestEvents() {
RunTest((c) => {
c.AddSource("Code.cs");
});
}
[TestMethod]
public void TestFields() {
RunTest((c) => {
c.AddSource("Code.cs");
});
}
[TestMethod]
public void TestIndexers() {
RunTest((c) => {
c.AddSource("Code.cs");
});
}
[TestMethod]
public void TestMethods() {
RunTest((c) => {
c.AddReference("Script.Web.dll")
.AddSource("Code.cs");
});
}
[TestMethod]
public void TestProperties() {
RunTest((c) => {
c.AddSource("Code.cs");
});
}
[TestMethod]
public void TestOverloads() {
RunTest((c) => {
c.AddSource("Code.cs");
});
}
[TestMethod]
public void TestStaticConstructors() {
RunTest((c) => {
c.AddReference("Script.Web.dll").
AddSource("Code.cs");
});
}
}
}