(@nunit/framework-team ์ฐ๋ฆฌ๋ 3.10 ์ด์ ์ ์ด๊ฒ์ ์ฒ๋ฆฌํด์ผ ํฉ๋๋ค. ๊ทธ๋ ์ง ์์ผ๋ฉด .NET Standard 2.0 ๋น๋๋ฅผ ๊ฐ์ ธ์ต๋๋ค.)
์ด๋ฌํ ํ ์คํธ๋ Windows์๋ง ์ ์ฉ๋ฉ๋๋ค. ๋ค๋ฅธ ์ด์ ์ฒด์ ์ .NET Core๋ก ์ธํด ์คํจํฉ๋๋ค. ๊ทธ๋ฌ๋ Mono๋ ํ ์คํธ๋ฅผ ํต๊ณผํ์ฌ ๋ค๋ฅธ OS์์ .NET Framework DLL์ ์ฌ์ฉํ์ฌ Windows ๋์์ ์์ฑํ๋ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค. .NET Core์ .NET Standard DLL์ Mono์ .NET Framework DLL๊ณผ ์ผ์นํ์ง ์์ต๋๋ค.
https://github.com/dotnet/corefx/issues/11221์ ๋ฐ๋ฅด๋ฉด ๋ ์ง ํ์์ ์๋์ ์ผ๋ก OS์ ๋ฐ๋ผ ๋ฌ๋ผ์ผ ํฉ๋๋ค.
https://github.com/dotnet/corefx/issues/17052 ๋ฌธ์์ด ๋น๊ต์ ๋ํด ๋์ผํ ๊ฒฐ๋ก ์ ๋ด๋ฆฌ๋ ๊ฒ์ฒ๋ผ ๋ณด์
๋๋ค.
.NET Core์ ๊ฐ์ ์ ์ฅ์ ์ทจํ๊ณ Windows์ Ubuntu์์ ๋ค๋ฅธ ๊ฒฐ๊ณผ๋ฅผ ๊ธฐ๋ํด์ผ ํฉ๋๊น?
Mono๊ฐ (๋ด ์๊ฐ์) WINdows ๋์์ ์ด๋ป๊ฒ๋ ๋ค๋ฅธ OS์ ํด๋ฆฌํ(Polyfill)ํ๋ ๊ฒ๊ณผ ๊ฐ์ ์ ์ฅ์ ์ทจํด์ผ ํฉ๋๊น(๋ฎ์ ROI์ฒ๋ผ ๋ณด์ด์ง๋ง)?
์์ง .NET Standard์์ PlatformAttribute
๋ฅผ ํ์ฑํํ๋ ์์
์ ์ํํ์ง ์์์ต๋๋ค. 3.10์ ์ํด ์์ ๋ผ๊ณ NUnit์ ๋ฌธํ API๋ฅผ ์ ๊ฑฐํด์ผ ํฉ๋๊น, ์๋๋ฉด ํ๋ซํผ ๊ฐ์ง ๋ฐ ๋ฌธํ API๋ฅผ ๋ชจ๋ ์ถ๊ฐํด์ผ ํ๋์?
Failed : NUnit.Framework.Attributes.SetCultureAttributeTests.UseWithParameterizedTest()
Expected string length 19 but was 17. Strings differ at index 6.
Expected: "01.06.2010 00:00:00"
But was: "01.06.10 00:00:00"
-----------------^
Failed : NUnit.Framework.Constraints.SubstringConstraintTests.SpecifyComparisonType(" ss ","ร",CurrentCulture,True)
Expected: String containing "ร"
But was: " ss "
Failed : NUnit.Framework.Constraints.SubstringConstraintTests.SpecifyComparisonType(" ss ","ร",CurrentCultureIgnoreCase,True)
Expected: String containing "ร"
But was: " ss "
Failed : NUnit.Framework.Constraints.SubstringConstraintTests.SpecifyComparisonType(" SS ","ร",CurrentCultureIgnoreCase,True)
Expected: String containing "ร"
But was: " SS "
Failed : NUnit.Framework.Constraints.SubstringConstraintTests.SpecifyComparisonType(" ss ","ร",InvariantCulture,True)
Expected: String containing "ร"
But was: " ss "
Failed : NUnit.Framework.Constraints.SubstringConstraintTests.SpecifyComparisonType(" ss ","ร",InvariantCultureIgnoreCase,True)
Expected: String containing "ร"
But was: " ss "
Failed : NUnit.Framework.Constraints.SubstringConstraintTests.SpecifyComparisonType(" SS ","ร",InvariantCultureIgnoreCase,True)
Expected: String containing "ร"
But was: " SS "
1.6์ ์๋ ์๋ก์ด ๊ธฐ๋ฅ์ ์ถ๊ฐํ์ง ์์๋ .NET Core 2.0 ๋น๋๋ฅผ ๋ณด๊ฒ ๋์ด ๊ธฐ์ฉ๋๋ค. ๋ณํฉํ๋ ๊ฒ์ ํฉ๋ฆฌ์ ์ธ ์์ ์ด๋ฉฐ ์ถ๊ฐ๋ ๊ฐ ๊ธฐ๋ฅ์ ํ ๋ฒ์ ํ๋์ PR์ ์ํํ ์ ์์ต๋๋ค.
๋ฌธํ ๋ฐ ๋ฌธ์์ด ๋ฌธ์ ์ ๊ด๋ จํ์ฌ ๋ OS์์ ๋ค๋ฅด๋ค๋ ์๊ฐ์ ๋์ํฉ๋๋ค. ํ ์คํธ๋ ์์๋ฅผ ์ฌ์ฉํ๋ ๋์ ํธ์ถ์ ์ฌ์ฉํ์ฌ ์์คํ ์ ๋ํ ์์ ๊ฐ์ ์ป์ ์ ์์ต๋๋ค.
.NET Core์ ๊ฐ์ ์ ์ฅ์ ์ทจํ๊ณ Windows์ Ubuntu์์ ๋ค๋ฅธ ๊ฒฐ๊ณผ๋ฅผ ๊ธฐ๋ํด์ผ ํฉ๋๊น?
์ ์๊ฐ์ ์ด๊ฒ์ NUnit์ ๋ฌธ์ ๊ฐ ์๋๋๋ค.
์๋
,
์ด ๋ฌธ์ ๋ก ๊ณ ํต๋ฐ๋ ์ฌ๋์ ์ํด ๊ฐ๋จํ ์๋ฃจ์
์ ๋ง๋ค์์ต๋๋ค.
https://github.com/effyteva/Teva.Common.Cultures
์ฌ๋ณด์ธ์!
์๋ง๋ ์ด ์๋ฃจ์
์ ๋๊ตฐ๊ฐ์๊ฒ ์ ์ฉํ ๊ฒ์
๋๋ค: https://github.com/dotnet/corefx/issues/11221#issuecomment -572932255
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ ์๊ฐ์ ์ด๊ฒ์ NUnit์ ๋ฌธ์ ๊ฐ ์๋๋๋ค.