Ejemplo n.º 1
0
            public void SubtractAbsoluteFile_Theory(TheoryArgs args)
            {
                AbsoluteFolderPath finish = args.LeftPath;
                AbsoluteFilePath   start  = args.RightPath;

                if (args.ExpectedPath == null)
                {
                    Trap.Exception(() => { var _ = finish - start; })
                    .ShouldNotBeNull();
                }
                else
                {
                    RelativeFolderPath relative = finish - start;
                    relative.ToString()
                    .ShouldEqual(args.ExpectedPath);
                }
            }
Ejemplo n.º 2
0
            public void AddRelativeFolderPath_Theory(TheoryArgs args)
            {
                AbsoluteFolderPath absoulte = args.LeftPath;
                RelativeFolderPath relative = args.RightPath;

                if (args.ExpectedPath == null)
                {
                    Trap.Exception(() => { var _ = absoulte + relative; })
                    .ShouldNotBeNull();
                }
                else
                {
                    var combined = absoulte + relative;
                    combined.ToString()
                    .ShouldEqual(args.ExpectedPath);
                }
            }