Skip to content

Commit cef7aae

Browse files
committed
fix test case for .net9.0
1 parent ada40fe commit cef7aae

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CSharp.lua/CoreSystem.Lua/CoreSystem/Collections/Dictionary.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ local DictionaryCollection = define("System.Collections.Generic.DictionaryCollec
194194
getCount = function (this)
195195
return getCount(this.dict)
196196
end,
197+
Contains = function (this, v)
198+
if this.kind == 2 then
199+
return this.dict:ContainsValue(v)
200+
end
201+
return this.dict:ContainsKey(v)
202+
end,
197203
GetEnumerator = function (this)
198204
return dictionaryEnumerator(this.dict, this.kind)
199205
end

test/BridgeNetTests/Tests/test.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local function out(module)
99
end
1010

1111
local function lib(module)
12-
return ("../%s/bin/Debug/net6.0/%s.dll!"):format(module, module)
12+
return ("../%s/bin/Debug/net9.0/%s.dll!"):format(module, module)
1313
end
1414

1515
local function libs(...)
@@ -61,4 +61,4 @@ run {
6161
metadata = true,
6262
module = true
6363
},
64-
}
64+
}

0 commit comments

Comments
 (0)