Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Nunit test

Hello,
I need to write a nunit test for this bit of code:

using System;
using System.Linq;

namespace EE_Q29143059
{
    class Program
    {
        static void Main(string[] args)
        {
            var data = "1,0,0,1";
            var result = $"?{String.Join("&", data.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(x => $"message={x}"))}";
            Console.WriteLine(result);
            Console.ReadLine();
        }
    }
}

Thanks
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RIAS

ASKER

Thanks Sir!!!