示例#1
0
        public void TestSetStaticFlag_FluentAPI()
        {
            // Arrange
            string       fieldName = "field";
            string       fieldType = "int";
            bool         isStatic  = true;
            SGClassField field     = new SGClassField(fieldName, fieldType);

            // Act
            field = field.WithIsStatic(isStatic);

            // Assert
            Assert.IsTrue(field.IsStatic);
        }