Esempio n. 1
0
        public void Typical()
        {
            // Arrange
            var obj = new SomeData
            {
                Id      = new Guid("8d995e6e-af88-4043-8c31-8ba04c6b4298"),
                Integer = 23,
                Text    = "foo bar",
                Date    = null
            };

            // Act
            var dict = DictionaryMaker.Make(obj);

            // Assert
            Assert.AreEqual(obj.Id, dict["Id"]);
            Assert.AreEqual(obj.Integer, dict["Integer"]);
            Assert.AreEqual(obj.Text, dict["Text"]);
            Assert.AreEqual(obj.Date, dict["Date"]);
        }
Esempio n. 2
0
        public void Typical()
        {
            // Arrange
            var obj = new SomeData()
            {
                Id = new Guid("8d995e6e-af88-4043-8c31-8ba04c6b4298"),
                Integer = 23,
                Text = "foo bar",
                Date = null
            };

            // Act
            var dict = DictionaryMaker.Make(obj);

            // Assert
            Assert.AreEqual(obj.Id, dict["Id"]);
            Assert.AreEqual(obj.Integer, dict["Integer"]);
            Assert.AreEqual(obj.Text, dict["Text"]);
            Assert.AreEqual(obj.Date, dict["Date"]);
        }