|
|
@ -34,7 +34,7 @@ public class CSharpTempTests : GeneratorTestFixture |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public void TestFixedArrays() |
|
|
|
public void TestFixedArrays() |
|
|
|
{ |
|
|
|
{ |
|
|
|
Qux qux = new Qux(null); |
|
|
|
Qux qux = new Qux((Foo) null); |
|
|
|
var array = new[] { 1, 2, 3 }; |
|
|
|
var array = new[] { 1, 2, 3 }; |
|
|
|
qux.Array = array; |
|
|
|
qux.Array = array; |
|
|
|
for (int i = 0; i < qux.Array.Length; i++) |
|
|
|
for (int i = 0; i < qux.Array.Length; i++) |
|
|
@ -64,7 +64,7 @@ public class CSharpTempTests : GeneratorTestFixture |
|
|
|
Assert.That(proprietor.Value, Is.EqualTo(20)); |
|
|
|
Assert.That(proprietor.Value, Is.EqualTo(20)); |
|
|
|
proprietor.Prop = 50; |
|
|
|
proprietor.Prop = 50; |
|
|
|
Assert.That(proprietor.Prop, Is.EqualTo(50)); |
|
|
|
Assert.That(proprietor.Prop, Is.EqualTo(50)); |
|
|
|
var p = new P(null); |
|
|
|
var p = new P((IQux) null); |
|
|
|
p.Value = 20; |
|
|
|
p.Value = 20; |
|
|
|
Assert.That(p.Value, Is.EqualTo(30)); |
|
|
|
Assert.That(p.Value, Is.EqualTo(30)); |
|
|
|
p.Prop = 50; |
|
|
|
p.Prop = 50; |
|
|
|