mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
# Conflicts: # Demos/Guess/GuessOS.cs # Tests/Cosmos.Compiler.Tests.Bcl/Kernel.cs # source/Cosmos.System.Plugs/Cosmos.System.Plugs.csproj
20 lines
559 B
C#
20 lines
559 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Cosmos.TestRunner;
|
|
|
|
namespace Cosmos.Compiler.Tests.Bcl.System
|
|
{
|
|
public static class StringTest
|
|
{
|
|
public static void Execute()
|
|
{
|
|
Assert.IsTrue(("a" + "b") == "ab", "concatting 2 string using + doesn't work");
|
|
Assert.IsTrue(("a" + 'b') == "ab", "concatting 1 string and 1 character doesn't work");
|
|
|
|
char x = 'a';
|
|
string y = "a";
|
|
Assert.IsTrue(x.ToString() == y, "String == operator ");
|
|
}
|
|
}
|
|
}
|