public void T02b_Should_compute_namespace_and_name() { var tmp = new EnumsGeneratorItem { Names = "Other.Bla", Options = OptionsCollection.Parse(sampleOptions, ParserKind.Default), TargetAssembly = typeof(EnumsGeneratorTests).Assembly }; Assert.Equal("iSukces.SimpleLinux.Tests.Other", tmp.Namespace); Assert.Empty(tmp.OwnerClasses); Assert.Equal("Bla", tmp.EnumName); }
public void T01_Should_parse_sample_options() { var q = OptionsCollection.Parse(sampleOptions, ParserKind.Default); Assert.Equal(17, q.Values.Count); { var a = q.Values[0]; Assert.Equal("d", a.ShortOption); Assert.Equal("detach", a.LongOption); Assert.Equal( "Detached mode: Run containers in the background, print new container names. Incompatible with --abort-on-container-exit.", a.Description); } { var a = q.Values[16]; Assert.Equal("scale", a.LongOption); Assert.Equal("SERVICE", a.Parameter.Name); Assert.Equal("NUM", a.Parameter.Value); } }