Exemplo n.º 1
0
        static void StructSample()
        {
            BookSample bookSample = new BookSample(5.99m, "Zombie Fallout", "Mark Tufo");

            Console.WriteLine(" The book " + bookSample.title + " by " + bookSample.author +
                              " is $" + bookSample.price);
        }
Exemplo n.º 2
0
        public static IEnumerable <object[]> WordCountSamples() =>
        new List <object[]>
        {
            new object[] { "", 0 },
            new object[] { null, 0 },
            new object[] { @"Provided by The Internet Classics Archive.
See bottom for copyright. Available online at
    http://classics.mit.edu//Plato/republic.html

The Republic
By Plato


Translated by Benjamin Jowett

----------------------------------------------------------------------

THE INTRODUCTION

The Republic of Plato is the longest of his works with the exception
of the Laws, and is certainly the greatest of them. There are nearer
approaches to modern metaphysics in the Philebus and in the Sophist;
the Politicus or Statesman is more ideal; the form and institutions
of the State are more clearly drawn out in the Laws; as works of art,
the Symposium and the Protagoras are of higher excellence. But no
other Dialogue of Plato has the same largeness of view and the same
perfection of style; no other shows an equal knowledge of the world,
or contains more of those thoughts which are new as well as old, and
not of one age only but of all.", 151 },
            new object[] { BookSample.TheRepublic(), 125264 }
        };
Exemplo n.º 3
0
        static void HouseSamples()
        {
            House myHouse = new House("concrete", "triple Pane");

            Console.WriteLine(myHouse.PaintDoor);
            Console.WriteLine(myHouse.Foundation);

            myHouse.OpenDoor(true);

            BookSample bookSample = new BookSample(4.99m, "Zombie Fall Out", "Mark Tufo");

            Console.WriteLine("The book " + bookSample.title + " by " + bookSample.author + " is $" + bookSample.price);
        }
Exemplo n.º 4
0
        static void StructSample()
        {
            BookSample bookSample = new BookSample(4.99m, "Fallout Bible", "Chris Avallone");

            Console.WriteLine("The book " + bookSample.title + " by " + bookSample.author + " is $" + bookSample.price);
        }