KunzeAndreas
KunzeAndreas
### VB.Net input code ```vbnet Private Shared Sub LinqWithNullable() Dim a = New List(Of Integer?) From {1, 2, 3, Nothing} Dim result = From x In a Where x =...
### VB.Net input code ```vbnet Private Shared Sub LinqWithGroup() Dim numbers = New List(Of Integer) From {1, 2, 3, 4, 4} Dim duplicates = From x In numbers Group By...
### VB.Net input code ```vbnet Private Shared Sub ReturnWithOutParam() Dim testclass = New OutParamTestClass Assert.That(testclass.Number = 2) Dim dummy = CallSubWithOutParam(testclass) Assert.That(testclass.Number = 1) End Sub Private Shared Function CallSubWithOutParam(testClass...
### VB.Net input code ```vbnet Dim testChar As Char = Nothing Dim testResult = testChar = "" Assert.That(testResult, "comparing null character with empty string should be true") ``` ### Erroneous...
### VB.Net input code ```vbnet Private Shared Sub OptionalParams() FunctionWithOptionalParams() End Sub Private Shared Sub FunctionWithOptionalParams(Optional ByRef structParam As TestStruct = Nothing, Optional ByRef decimalParam As Decimal = 0) structParam...
in c# some flags are not converted (found in VB under properties / tab "Compile" / "Advanced Compile Options...")  properties / tab "Build" - Define DEBUG constant - Define...
### Input code ```vbnet Assert.That(CDate(Nothing) = New Date(1, 1, 1)) ``` ### Erroneous output ```C# Assert.That(Conversions.ToDate(default) == new DateTime(1, 1, 1)); throws System.InvalidCastException ``` ### Expected output ```C# Assert.That(default(DateTime) ==...
### VB.Net input code Const value = &HFFFFFFFF value.Should.Be.EqualTo(-1) ### Erroneous output const int value = 0xFFFFFFFF; this doesn't compile (cannot convert uint to int) ### Expected output var value...