示例#1
0
        public bool TestAddDim()
        {
            NcFile file = null;

            try {
                file = TestHelper.NewFile(filePath);
                NcDim dim1 = file.AddDim("time", 20);
                Assert.Equals(dim1.GetName(), "time");
                Assert.Equals(dim1.GetSize(), 20);
                Assert.Equals(file.GetDimCount(), 1);
            } finally {
                file.Close();
            }
            CheckDelete(filePath);
            return(true);
        }